package com.hgyc.mom.eam.enums;

/**
 * 设备使用状态字典类
 * 自动生成的枚举类，请勿手动修改

 * @author fwj
 * @since 2025-08-19 15:50:10
 * @version 1.0
 **/
public enum EquipmentUseStatusEnum {
    USING("using", "使用中"),
    IN_IDLE("in_idle", "闲置"),
    SAFEKEEPING("safekeeping", "封存"),
    BREAKDOWN("breakdown", "故障停机")
    ;

    private final String value;
    private final String label;

    EquipmentUseStatusEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    public static EquipmentUseStatusEnum of(String value) {
        if (value == null) {
            return null;
        }
        for (EquipmentUseStatusEnum item : EquipmentUseStatusEnum.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.label;
    }
}

